//
//  YNFileMethod.h
//  xinhua
//
//  Created by fengyn on 15/11/12.
//  Copyright © 2015年 lexingsoft. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YNFileMethod : NSObject
///计算目录大小
+ (unsigned long long)getDirectorySizeForPath:(NSString *)path;
///计算文件大小
+ (unsigned long long)fileSizeAtPath:(NSString *)filePath;
///获取文件扩展名
+(NSString *)fileType:(NSString *)fileName;
///换算大小%.2fMB
+ (NSString *)convertSize:(unsigned long long)sourceSize;
///换算大小%.1fMB
+ (NSString *)convertSize1:(unsigned long long)sourceSize;
@end
